Refactor the share tools within post-widgets#357
Conversation
|
There seems strange, the bottom line of ok, tomorrow look around. |
ivan-nginx
left a comment
There was a problem hiding this comment.
Please, test with all other widgets if it's possible.
layout/_macro/post.swig
Outdated
| {% endif %} | ||
|
|
||
| {% if theme.baidushare and theme.baidushare.type === "button" %} | ||
| {% include 'baidushare.swig' %} |
There was a problem hiding this comment.
No need to rename from partials to macro here. Macro use {% macro render(name) %} (example), partials just included in other templates without any variables.
layout/_macro/post.swig
Outdated
| {% endif %} | ||
|
|
||
| {% if theme.needmoreshare2.enable and theme.needmoreshare2.postbottom.enable %} | ||
| {% if (theme.vkontakte_api.enable and theme.vkontakte_api.like) or (theme.facebook_sdk.enable and theme.facebook_sdk.like_button) %} |
There was a problem hiding this comment.
baidushare.swig provides the <div class="bdsharebuttonbox">, still need?
hexo-theme-next/layout/_partials/share/baidushare.swig
Lines 2 to 13 in e12bb0b
| .bdsharebuttonbox { | ||
| display: inline-block; | ||
|
|
||
| margin-top: 20px; |
There was a problem hiding this comment.
Move this styles to .post-widgets maybe?
layout/post.swig
Outdated
| @@ -16,8 +16,6 @@ | |||
| <div class="post-spread"> | |||
| {% if theme.jiathis %} | |||
There was a problem hiding this comment.
Need to do same with jiathis?
layout/post.swig
Outdated
| {% include '_partials/share/jiathis.swig' %} | ||
| {% elseif theme.baidushare %} | ||
| {% include '_partials/share/baidushare.swig' %} | ||
| {% elseif theme.add_this_id %} |
There was a problem hiding this comment.
Need to do same with add-this?
There was a problem hiding this comment.
yes, to be continued. ING
There was a problem hiding this comment.
jiathis and add-this will do in other pr.
How this looks now?
* Fix post-spread invisible in Gemini * Refactor the baidushare within post-widgets * Remove baidushare.swig * Add slide mode support * Fix widgets position * Fix bdshare slide display logic * Fix bdshare slide display logic * Move add-this to _layout * Delete jiathis share because of closed officially * Update divider position
* Fix post-spread invisible in Gemini * Refactor the baidushare within post-widgets * Remove baidushare.swig * Add slide mode support * Fix widgets position * Fix bdshare slide display logic * Fix bdshare slide display logic * Move add-this to _layout * Delete jiathis share because of closed officially * Update divider position
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
hexo-theme-next/source/css/_schemes/Gemini/index.styl
Lines 80 to 82 in b378211
Issue Number(s): #356
What is the new behavior?
post-widgetslike rating, like, needmoreshare2.container_classin_layout.swig.How to use?
In NexT
_config.yml:Does this PR introduce a breaking change?